package cn.tedu.onlinestore.cart.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CartVO {
    @ApiModelProperty(value = "购物车ID")
    private Long id;
    @ApiModelProperty(value = "关联的用户ID")
    private Long userId;
    @ApiModelProperty(value = "商品ID")
    private Long productsId;
    @ApiModelProperty(value = "商品名称")
    private String name;
    @ApiModelProperty(value = "商品描述")
    private String description;
    @ApiModelProperty(value = "商品价格")
    private String price;
    @ApiModelProperty(value = "商品数量")
    private Integer amount;
    @ApiModelProperty(value = "总金额")
    private Double total;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
